﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>

    <!-- basic styles -->
    <link rel="stylesheet" href="./assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="./assets/css/font-awesome.min.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="./assets/css/ace.min.css" />
    <link rel="stylesheet" href="./assets/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="./assets/css/ace-skins.min.css" />

    <link rel="stylesheet" href="./assets/css/jquery-ui-1.10.3.custom.min.css" />
    <link rel="stylesheet" href="./assets/css/jquery.gritter.css" />

</head>

<body ng-app="indexApp" ng-controller="indexController">

    <div style="background: url(assets/images/BG.jpg) top center repeat-y #B1B1B1; position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 9999; text-align: center;" ng-class="isLoading?'':'modal'">
        <div style=" height: 137px;margin-top:100px;">
            <img src="assets/images/loaded.gif" width="384" height="137" />
        </div>
        <div style="padding-top: 48px; height: 36px;">
            <img src="assets/images/loding.gif" width="238" height="36" />
        </div>
        <div style="font: bold 12px/12 '宋体'; color: #666;">{{loadingText}}</div>
    </div>

    <div class="navbar navbar-default" id="navbar">
        <script type="text/javascript">
            try { ace.settings.check('navbar', 'fixed') } catch (e) { }
        </script>

        <div class="navbar-container" id="navbar-container">

            <div class="navbar-header pull-left" style="padding-top: 2px">
                <img src="{{appItem.logo}}" style="height: 40px; width: 40px;" />
            </div>

            <div class="navbar-header pull-left">
                <a href="#" class="navbar-brand">
                    <small>
                        {{appItem.name}}
                    </small>
                </a>
                <!-- /.brand -->
            </div>

            <!-- /.navbar-header -->

            <div class="navbar-header pull-right" role="navigation" ng-mouseover="g_timer.onPause()" ng-mouseleave="g_timer.onResume()">
                <ul class="nav ace-nav">
                    <li class="grey">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="icon-tasks"></i>
                            <span class="badge badge-grey">{{taskItem.totalCount}}</span>
                        </a>
                        <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="icon-ok"></i>
                                还有{{taskItem.unRead}}个任务完成
                            </li>

                            <li ng-repeat="taskInfo in taskList">
                                <a href="#">
                                    <div class="clearfix">
                                        <span class="pull-left">{{taskInfo.title}}</span>
                                        <span class="pull-right">{{taskInfo.progress}}</span>
                                    </div>

                                    <div class="progress progress-mini ">
                                        <div ng-style="{width: taskInfo.progress}" class="progress-bar "></div>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    查看任务详情
                                    <i class="icon-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="purple">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="icon-bell-alt icon-animated-bell"></i>
                            <span class="badge badge-important">{{alertItem.totalCount}}</span>
                        </a>

                        <ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="icon-warning-sign"></i>
                                {{alertItem.unRead}}条通知
                            </li>

                            <li ng-repeat="alertInfo in alertList">
                                <a href="#">
                                    <div class="clearfix">
                                        <span class="pull-left">
                                            <i class="btn btn-xs no-hover btn-pink icon-comment"></i>
                                            {{alertInfo.title}}
                                        </span>
                                        <span class="pull-right badge badge-info">+ {{alertInfo.count}}</span>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    查看所有通知
                                    <i class="icon-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="green">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="icon-envelope icon-animated-vertical"></i>
                            <span class="badge badge-success">{{messItem.totalCount}}</span>
                        </a>

                        <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="icon-envelope-alt"></i>
                                {{messItem.unRead}}条消息
                            </li>

                            <li ng-repeat="messInfo in messList">
                                <a href="#">
                                    <span class="msg-body">
                                        <span class="msg-title">
                                            <span class="blue">
                                                <i class="btn btn-xs no-hover btn-pink icon-comment"></i>
                                                {{messInfo.senderText}}
                                            </span>
                                            {{messInfo.title}}
                                        </span>

                                        <span class="msg-time">
                                            <i class="icon-time"></i>
                                            <span>{{messInfo.createdTime}}</span>
                                        </span>
                                    </span>
                                </a>
                            </li>

                            <li>
                                <a href="inbox.html">
                                    查看所有消息
                                    <i class="icon-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="light-blue">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="{{userItem.avatar}}" />
                            <span class="user-info">
                                <small>欢迎光临,</small>
                                {{userItem.name}}
                            </span>

                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li>
                                <a href="#">
                                    <i class="icon-cog"></i>
                                    设置
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    <i class="icon-user"></i>
                                    个人资料
                                </a>
                            </li>

                            <li class="divider"></li>

                            <li>
                                <a href="#" ng-click="logout()">
                                    <i class="icon-off"></i>
                                    退出
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <!-- /.ace-nav -->
            </div>
            <!-- /.navbar-header -->
        </div>
        <!-- /.container -->
    </div>

    <div class="main-container" id="main-container">
        <script type="text/javascript">
            try { ace.settings.check('main-container', 'fixed') } catch (e) { }
        </script>

        <div class="main-container-inner">
            <a class="menu-toggler" id="menu-toggler" href="#">
                <span class="menu-text"></span>
            </a>

            <div class="sidebar" id="sidebar">
                <script type="text/javascript">
                    try { ace.settings.check('sidebar', 'fixed') } catch (e) { }
                </script>

                <div class="sidebar-shortcuts" id="sidebar-shortcuts" style="max-height: none;">
                    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                        <button class="btn btn-success">
                            <i class="icon-signal"></i>
                        </button>

                        <button class="btn btn-info">
                            <i class="icon-pencil"></i>
                        </button>

                        <button class="btn btn-warning">
                            <i class="icon-group"></i>
                        </button>

                        <button class="btn btn-danger">
                            <i class="icon-cogs"></i>
                        </button>
                    </div>

                    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                        <span class="btn btn-success"></span>

                        <span class="btn btn-info"></span>

                        <span class="btn btn-warning"></span>

                        <span class="btn btn-danger"></span>
                    </div>
                </div>
                <!-- #sidebar-shortcuts -->
                <div>
                    <ul class="nav nav-list">
                        <li ng-repeat="item in items" ng-class="{active:item.isActive}">

                            <a class="dropdown-toggle" href="#" ng-click="onNavItemClick(item,item.linkUrl)">
                                <i class="icon-file-alt"></i>
                                <span class="menu-text">{{item.caption}} </span>
                                <b class="arrow icon-angle-down" ng-style="{visibility: hasSubItems(item)}"></b>
                            </a>

                            <ul class="submenu" ng-style="{visibility: hasSubItems(item)}">
                                <li ng-repeat="subItem in item.items" ng-class="{active:subItem.isActive}">
                                    <a href="#" ng-click="onNavItemClick(subItem,subItem.linkUrl)" ng-class="{dropdown-toggle:hasSubItems2Bool(SubItem)}">
                                        <i class="icon-double-angle-right"></i>
                                        {{subItem.caption}}
                                        <b class="arrow icon-angle-down" ng-style="{visibility: hasSubItems(subItem)}"></b>
                                    </a>

                                    <ul class="submenu" ng-style="{visibility: hasSubItems(subItem)}">
                                        <li ng-repeat="thirdLevelItem in subItem.items" ng-class="{active:thirdLevelItem.isActive}">
                                            <a href="#" ng-click="onNavItemClick(thirdLevelItem,thirdLevelItem.linkUrl)" class="dropdown-toggle">
                                                <i class="icon-leaf"></i>
                                                {{thirdLevelItem.caption}}
                                                <b class="arrow icon-angle-down"></b>
                                            </a>

                                        </li>
                                </li>
                            </ul>
                        </li>

                    </ul>

                </div>
                <!-- /.nav-list -->

                <div class="sidebar-collapse" id="sidebar-collapse">
                    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
                </div>

                <script type="text/javascript">
                    try { ace.settings.check('sidebar', 'collapsed') } catch (e) { }
                </script>
            </div>

            <div class="main-content">
                <div class="breadcrumbs" id="breadcrumbs">
                    <script type="text/javascript">
                        try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
                    </script>

                    <ul class="breadcrumb">
                        <li>
                            <i class="icon-home home-icon"></i>
                            <a href="#">首页</a>
                        </li>
                        <li id="home_title" ng-repeat="view in viewStack" class="active">{{view.title}}</li>
                    </ul>
                    <!-- .breadcrumb -->

                    <div class="nav-search" id="nav-search">
                        <form class="form-search">
                            <span class="input-icon">
                                <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                                <i class="icon-search nav-search-icon"></i>
                            </span>
                        </form>
                    </div>
                    <!-- #nav-search -->
                </div>

                <div class="page-content">
                    <!-- /.page-header -->
                    <div class="row">
                        <div class="col-xs-12">
                            <div>
                                <iframe id="iframcontrol" name="iframcontrol" src="" style="width: 100%; height: 100%;" frameborder="no" border="0"></iframe>
                            </div>

                        </div>
                    </div>

                    <!-- /.row -->
                </div>

                <!-- /.page-content -->
            </div>
            <!-- /.main-content -->
            <!-- /#ace-settings-container -->
        </div>
    </div>
    <!-- /.main-container -->

    <!-- ace settings handler -->
    <script src="./assets/js/ace-extra.min.js"></script>
    <script src="./assets/js/jquery-2.0.3.min.js"></script>
    <script src="./assets/js/bootstrap.min.js"></script>
    <script src="./assets/js/typeahead-bs2.min.js"></script>
    <script src="./assets/js/ace-elements.min.js"></script>
    <script src="./assets/js/ace.min.js"></script>
    <script src="./assets/js/bootbox.min.js"></script>
    <script src="./assets/js/angular-1.4.1/angular.min.js"></script>
    <script src="./assets/js/promise.js"></script>
    <script src="./assets/js/jquery.gritter.min.js"></script>

    <script src="./assets/js/cppei/cppei.frame.js"></script>
    <script src="./index.js"></script>
</body>
</html>


